import utility

class RatingEntity(object):
    def __init__(self,memberID,songID,score,memberName=None,songName=None):
        self.__memberID = memberID
        self.__songID = songID
        self.__score = score
        self.__memberName = memberName
        self.__songName = songName
        
    ColumnNames = utility.Enum(
        memberID = "MemberID",
        songID = "SongID",
        score = "Score",
        memberName = "MemberName",
        songName = "SongName"
        )

    def __get_memberID(self):
        return self.__memberID
    def __set_memberID(self, value):
        self.__memberID = value
    MemberID = property(fget=__get_memberID, fset=__set_memberID)


    def __get_songID(self):
        return self.__songID
    def __set_songID(self, value):
        self.__songID = value
    SongID = property(fget=__get_songID, fset=__set_songID)


    def __get_score(self):
        return self.__score
    def __set_score(self, value):
        self.__score = value
    Score = property(fget=__get_score, fset=__set_score)


    def __get_memberName(self):
        return self.__memberName
    def __set_memberName(self, value):
        self.__memberName = value
    MemberName = property(fget=__get_memberName, fset=__set_memberName)


    def __get_songName(self):
        return self.__songName
    def __set_songName(self, value):
        self.__songName = value
    SongName = property(fget=__get_songName, fset=__set_songName)
